@extends('layout.adminlayout')
@section('css')
<script src="/admin/js/metisMenu.min.js"></script>
<script src="/admin/js/custom.js"></script>
<link href="/admin/css/custom.css" rel="stylesheet">
@endsection
@section('content')
<div class="tables">
	<div class="table-responsive bs-example widget-shadow">
		<h4>设备类型列表 :</h4>
		<table class="table table-bordered">
			<thead>
 				<tr>
 					<th>类型ID</th>
					<th>类型名称</th>
					<th>AppEUI</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			@if(!null == $data)
				@foreach($data as $k=>$v)
					<tr>
						<td>{{$v['id']}}</td>
						<td>{{$v['type']}}</td>
						<td>{{$v['app_eui']}}</td>
						<td><a href="/admin/type/edit?id={{$v['id']}}">编辑</a></td>
					</tr>
				@endforeach
			@endif
			</tbody> 
		</table>
		@if(!null == $data)
			<div style="float:right;">
				{!! $data->appends($request)->render() !!}
			</div>
		@endif
	</div>
</div>
@endsection